package org.usmile.algorithms.learn.union;

public interface UnionFind {
    void unionElement(int p, int q);

    boolean isConnected(int p, int q);

    int size();
}
